<?php
if (!isset($_SESSION)){
	session_start();
}

include_once "BudgetControl.php";

$orcamentos = BudgetControl::getOrcamentos(null);

$count = 0;

foreach ($orcamentos as $orcamento)
{
	if($count > 0)
		echo ",";
	echo "'<li class=\"item-activity border\">' + 
	'<a href=\"lancarOrcamento.php?id=" . $orcamento->BudgetId . "&status=" . $orcamento->Status . "\" class=\"link-activity\">' + 
	'<span class=\"main-item\"> Orçamento nº".$orcamento->BudgetId." (".$orcamento->BudgetDate.") </span>' +
	'<span class=\"complement-item\">".$orcamento->Status."</span>'+ 
	'</a>' + 
	'</li>'";
	
	$count++;
}
?>